package cn.itcast.bos.service.base;

import cn.itcast.bos.domain.base.FixedArea;
import cn.itcast.crm.domain.Customer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import java.util.List;

/**
 * Created by Administrator on 2017/7/23.
 */

public interface FixedAreaService {
    void save(FixedArea model);

    Page<FixedArea> pageQuery(Specification<FixedArea> specification, Pageable pageable);
        //查询未关联定区的客户
    List<Customer> findNoassociationCustomer();
        //查询已关联定区的客户
    List<Customer> findassociationCustomer(String id);
        //关联客户与定区
    void associationCustomersToFixedArea(String[] customerIds, String FixedAreaId);
    //关联快递员与定区的方法
    void associationCourierToFixedArea( FixedArea fixedArea,Integer courierId, Integer takeTimeId);


}
